package jobs.job3.classloaderdemo.server.standard.serializer;

// 任务的 输入输出 序列化器
public interface IOSerializer<I, O> {

    byte[] inputSerialize(I obj) throws Exception;
    I inputDeserialize(byte[] bytes) throws Exception;

    byte[] outputSerialize(O obj) throws Exception;
    O outputDeserialize(byte[] bytes) throws Exception;

}
